<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>生产监控 - 转炉终点预测系统</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
    <link rel="stylesheet" href="styles/unified.css">
    <link rel="stylesheet" href="styles/components.css">
    <link rel="stylesheet" href="styles/sidebar-theme.css">
    <link rel="stylesheet" href="styles/scale-fix.css">
    <link rel="stylesheet" href="styles/modal-dialog.css">
</head>
<body>
    <!-- 侧边栏 -->
    <div class="sidebar">
        <div class="sidebar-header">
            <div class="sidebar-logo">
                <i class="fas fa-industry"></i>
            </div>
            <div class="sidebar-title">转炉终点预测系统</div>
        </div>
        <div class="sidebar-menu">
            <div class="sidebar-menu-title">主导航</div>
            <ul>
                <li><a href="index.html"><i class="fas fa-home"></i>首页</a></li>
                
                <li><a href="production-monitor.html" class="active"><i class="fas fa-chart-line"></i>生产监控</a></li>
                <li><a href="history-data.html"><i class="fas fa-history"></i>历史数据</a></li>
                <li><a href="quality-analysis.html"><i class="fas fa-flask"></i>质量分析</a></li>
            </ul>
            
            <div class="sidebar-menu-title">模型管理</div>
            <ul>
                <li><a href="model-details.html"><i class="fas fa-brain"></i>模型详情</a></li>
                <li><a href="model-config.html"><i class="fas fa-cogs"></i>模型配置</a></li>
                <li><a href="model-performance.html"><i class="fas fa-chart-bar"></i>模型性能</a></li>
                <li><a href="model-update.html"><i class="fas fa-sync-alt"></i>模型更新</a></li>
            </ul>
            
            <div class="sidebar-menu-title">系统设置</div>
            <ul>
                <li><a href="system-settings.html"><i class="fas fa-cog"></i>系统设置</a></li>
                <li><a href="online-analysis.html"><i class="fas fa-chart-bar"></i>在线分析</a></li>
            </ul>
        </div>
        <div class="sidebar-footer">
            <i class="fas fa-info-circle"></i>
            <span>系统版本：v2.5.3</span>
        </div>
    </div>

    <!-- 侧边栏遮罩层 -->
    <div class="sidebar-overlay"></div>

    <div class="container">
        <div class="header">
            <div class="header-left">
                <div>
                    <div class="title">生产监控</div>
                    <div class="subtitle">实时监控转炉生产状态和关键参数</div>
                </div>
            </div>
            <div class="header-right">
                <div class="header-icon">
                    <i class="fas fa-search"></i>
                </div>
                <div class="header-icon">
                    <i class="fas fa-bell"></i>
                    <span class="notification-badge">3</span>
                </div>
                <div class="dropdown">
                    <div class="user-dropdown dropdown-trigger">
                        <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="用户头像" class="user-avatar">
                        <span class="user-name">工程师</span>
                        <i class="fas fa-chevron-down"></i>
                    </div>
                    <div class="dropdown-menu">
                        <a href="#" class="dropdown-item">
                            <i class="fas fa-user"></i>
                            <span>个人资料</span>
                        </a>
                        <a href="#" class="dropdown-item">
                            <i class="fas fa-cog"></i>
                            <span>账号设置</span>
                        </a>
                        <a href="#" class="dropdown-item">
                            <i class="fas fa-question-circle"></i>
                            <span>帮助中心</span>
                        </a>
                        <a href="login.html" class="dropdown-item">
                            <i class="fas fa-sign-out-alt"></i>
                            <span>退出登录</span>
                        </a>
                    </div>
                </div>
            </div>
        </div>

        <div class="content-wrapper">
            <!-- 炉次状态概览 -->
            <div class="section-title">炉次状态概览</div>
            <div class="status-cards">
                <div class="status-card active">
                    <div class="status-card-header">
                        <div class="status-card-title">1号转炉</div>
                        <div class="status-card-badge running">运行中</div>
                    </div>
                    <div class="status-card-body">
                        <div class="status-info">
                            <div class="status-info-item">
                                <div class="status-label">当前炉次</div>
                                <div class="status-value">B2023112801</div>
                            </div>
                            <div class="status-info-item">
                                <div class="status-label">开始时间</div>
                                <div class="status-value">09:15:28</div>
                            </div>
                            <div class="status-info-item">
                                <div class="status-label">已运行</div>
                                <div class="status-value">18分钟</div>
                            </div>
                            <div class="status-info-item">
                                <div class="status-label">预计结束</div>
                                <div class="status-value">09:42:15</div>
                            </div>
                        </div>
                        <div class="progress-container">
                            <div class="progress-label">
                                <span>生产进度</span>
                                <span>65%</span>
                            </div>
                            <div class="progress-bar">
                                <div class="progress-fill" style="width: 65%;"></div>
                            </div>
                        </div>
                    </div>
                    <div class="status-card-footer">
                        <button class="btn btn-sm btn-primary">
                            <i class="fas fa-eye"></i>
                            查看详情
                        </button>
                        <button class="btn btn-sm btn-secondary">
                            <i class="fas fa-chart-line"></i>
                            参数曲线
                        </button>
                    </div>
                </div>
                
                <div class="status-card">
                    <div class="status-card-header">
                        <div class="status-card-title">2号转炉</div>
                        <div class="status-card-badge maintenance">维护中</div>
                    </div>
                    <div class="status-card-body">
                        <div class="status-info">
                            <div class="status-info-item">
                                <div class="status-label">当前炉次</div>
                                <div class="status-value">--</div>
                            </div>
                            <div class="status-info-item">
                                <div class="status-label">开始时间</div>
                                <div class="status-value">--</div>
                            </div>
                            <div class="status-info-item">
                                <div class="status-label">已运行</div>
                                <div class="status-value">--</div>
                            </div>
                            <div class="status-info-item">
                                <div class="status-label">预计结束</div>
                                <div class="status-value">--</div>
                            </div>
                        </div>
                        <div class="maintenance-info">
                            <i class="fas fa-tools"></i>
                            <span>设备维护，预计12:30恢复生产</span>
                        </div>
                    </div>
                    <div class="status-card-footer">
                        <button class="btn btn-sm btn-secondary">
                            <i class="fas fa-clipboard-list"></i>
                            维护记录
                        </button>
                    </div>
                </div>
                
                <div class="status-card">
                    <div class="status-card-header">
                        <div class="status-card-title">3号转炉</div>
                        <div class="status-card-badge standby">待机中</div>
                    </div>
                    <div class="status-card-body">
                        <div class="status-info">
                            <div class="status-info-item">
                                <div class="status-label">上次炉次</div>
                                <div class="status-value">B2023112754</div>
                            </div>
                            <div class="status-info-item">
                                <div class="status-label">结束时间</div>
                                <div class="status-value">08:42:15</div>
                            </div>
                            <div class="status-info-item">
                                <div class="status-label">待机时间</div>
                                <div class="status-value">56分钟</div>
                            </div>
                            <div class="status-info-item">
                                <div class="status-label">计划开始</div>
                                <div class="status-value">10:15:00</div>
                            </div>
                        </div>
                        <div class="standby-info">
                            <i class="fas fa-clock"></i>
                            <span>设备就绪，等待下一炉次计划</span>
                        </div>
                    </div>
                    <div class="status-card-footer">
                        <button class="btn btn-sm btn-primary">
                            <i class="fas fa-play"></i>
                            启动生产
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 设备状态监控 -->
            <div class="section-title">设备状态监控</div>
            <div class="card">
                <div class="card-header">
                    <div class="card-title">
                        <i class="fas fa-thermometer-half"></i>
                        关键设备状态
                    </div>
                    <div class="header-actions">
                        <div class="select-container">
                            <select class="form-control">
                                <option>1号转炉</option>
                                <option>2号转炉</option>
                                <option>3号转炉</option>
                            </select>
                        </div>
                        <button class="btn btn-sm btn-secondary">
                            <i class="fas fa-sync-alt"></i>
                            刷新数据
                        </button>
                    </div>
                </div>
                <div class="card-content">
                    <div class="device-status-grid">
                        <div class="device-status-item">
                            <div class="device-status-icon normal">
                                <i class="fas fa-temperature-high"></i>
                            </div>
                            <div class="device-status-info">
                                <div class="device-name">主温度传感器</div>
                                <div class="device-value">1628.5 °C</div>
                                <div class="device-status normal">正常</div>
                            </div>
                        </div>
                        
                        <div class="device-status-item">
                            <div class="device-status-icon normal">
                                <i class="fas fa-tachometer-alt"></i>
                            </div>
                            <div class="device-status-info">
                                <div class="device-name">压力监测</div>
                                <div class="device-value">0.82 MPa</div>
                                <div class="device-status normal">正常</div>
                            </div>
                        </div>
                        
                        <div class="device-status-item">
                            <div class="device-status-icon warning">
                                <i class="fas fa-wind"></i>
                            </div>
                            <div class="device-status-info">
                                <div class="device-name">氧气供应</div>
                                <div class="device-value">375 m³/h</div>
                                <div class="device-status warning">偏低</div>
                            </div>
                        </div>
                        
                        <div class="device-status-item">
                            <div class="device-status-icon normal">
                                <i class="fas fa-fan"></i>
                            </div>
                            <div class="device-status-info">
                                <div class="device-name">冷却系统</div>
                                <div class="device-value">28.4 °C</div>
                                <div class="device-status normal">正常</div>
                            </div>
                        </div>
                        
                        <div class="device-status-item">
                            <div class="device-status-icon normal">
                                <i class="fas fa-cogs"></i>
                            </div>
                            <div class="device-status-info">
                                <div class="device-name">传动系统</div>
                                <div class="device-value">65 RPM</div>
                                <div class="device-status normal">正常</div>
                            </div>
                        </div>
                        
                        <div class="device-status-item">
                            <div class="device-status-icon error">
                                <i class="fas fa-bolt"></i>
                            </div>
                            <div class="device-status-info">
                                <div class="device-name">电力供应</div>
                                <div class="device-value">387 V</div>
                                <div class="device-status error">波动</div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 参数监控图表 -->
            <div class="section-title">参数监控图表</div>
            <div class="charts-container">
                <div class="card">
                    <div class="card-header">
                        <div class="card-title">
                            <i class="fas fa-chart-line"></i>
                            温度曲线
                        </div>
                        <div class="header-actions">
                            <div class="time-selector">
                                <button class="btn btn-sm btn-primary">5分钟</button>
                                <button class="btn btn-sm btn-secondary">15分钟</button>
                                <button class="btn btn-sm btn-secondary">30分钟</button>
                            </div>
                        </div>
                    </div>
                    <div class="card-content">
                        <div class="chart-container">
                            <div class="chart-placeholder">
                                <i class="fas fa-chart-line"></i>
                                <p>温度趋势图</p>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="card">
                    <div class="card-header">
                        <div class="card-title">
                            <i class="fas fa-chart-line"></i>
                            压力/流量曲线
                        </div>
                        <div class="header-actions">
                            <div class="param-selector">
                                <select class="form-control form-control-sm">
                                    <option>氧气流量</option>
                                    <option>系统压力</option>
                                    <option>两者</option>
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="card-content">
                        <div class="chart-container">
                            <div class="chart-placeholder">
                                <i class="fas fa-chart-line"></i>
                                <p>压力/流量趋势图</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 警报信息 -->
            <div class="section-title">警报信息</div>
            <div class="card">
                <div class="card-header">
                    <div class="card-title">
                        <i class="fas fa-exclamation-triangle"></i>
                        最近警报
                    </div>
                    <div class="header-actions">
                        <div class="alert-filter">
                            <button class="btn btn-sm btn-primary">全部</button>
                            <button class="btn btn-sm btn-secondary">紧急</button>
                            <button class="btn btn-sm btn-secondary">警告</button>
                            <button class="btn btn-sm btn-secondary">提示</button>
                        </div>
                    </div>
                </div>
                <div class="card-content">
                    <div class="alerts-list">
                        <div class="alert-item error">
                            <div class="alert-icon">
                                <i class="fas fa-exclamation-circle"></i>
                            </div>
                            <div class="alert-content">
                                <div class="alert-title">电力供应波动</div>
                                <div class="alert-description">1号转炉电力供应电压波动超过标准范围</div>
                                <div class="alert-meta">
                                    <span class="alert-time">5分钟前</span>
                                    <span class="alert-device">1号转炉</span>
                                </div>
                            </div>
                            <div class="alert-actions">
                                <button class="btn btn-sm btn-primary">处理</button>
                                <button class="btn btn-sm btn-secondary">详情</button>
                            </div>
                        </div>
                        
                        <div class="alert-item warning">
                            <div class="alert-icon">
                                <i class="fas fa-exclamation-triangle"></i>
                            </div>
                            <div class="alert-content">
                                <div class="alert-title">氧气流量偏低</div>
                                <div class="alert-description">1号转炉氧气供应流量低于推荐范围</div>
                                <div class="alert-meta">
                                    <span class="alert-time">12分钟前</span>
                                    <span class="alert-device">1号转炉</span>
                                </div>
                            </div>
                            <div class="alert-actions">
                                <button class="btn btn-sm btn-primary">处理</button>
                                <button class="btn btn-sm btn-secondary">详情</button>
                            </div>
                        </div>
                        
                        <div class="alert-item info">
                            <div class="alert-icon">
                                <i class="fas fa-info-circle"></i>
                            </div>
                            <div class="alert-content">
                                <div class="alert-title">2号转炉维护提醒</div>
                                <div class="alert-description">2号转炉计划维护已开始，预计12:30完成</div>
                                <div class="alert-meta">
                                    <span class="alert-time">56分钟前</span>
                                    <span class="alert-device">2号转炉</span>
                                </div>
                            </div>
                            <div class="alert-actions">
                                <button class="btn btn-sm btn-primary">确认</button>
                                <button class="btn btn-sm btn-secondary">详情</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- JavaScript引用 -->
    <script src="scripts/unified.js"></script>
    <script src="scripts/modal-dialog.js"></script>

    <style>
        /* 生产监控页面特有样式 */
        .section-title {
            font-size: 18px;
            font-weight: 600;
            margin: 20px 0 15px;
            color: var(--primary-dark);
            border-left: 4px solid var(--primary);
            padding-left: 10px;
        }
        
        /* 状态卡片样式 */
        .status-cards {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .status-card {
            background-color: white;
            border-radius: var(--radius);
            box-shadow: var(--shadow-sm);
            overflow: hidden;
            transition: all 0.3s;
        }
        
        .status-card:hover {
            box-shadow: var(--shadow);
            transform: translateY(-2px);
        }
        
        .status-card.active {
            border-left: 4px solid var(--primary);
        }
        
        .status-card-header {
            padding: 15px;
            background-color: rgba(0, 0, 0, 0.02);
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .status-card-title {
            font-weight: 600;
            color: var(--primary-dark);
        }
        
        .status-card-badge {
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
        }
        
        .status-card-badge.running {
            background-color: rgba(76, 175, 80, 0.1);
            color: var(--success-color);
        }
        
        .status-card-badge.maintenance {
            background-color: rgba(255, 152, 0, 0.1);
            color: var(--warning-color);
        }
        
        .status-card-badge.standby {
            background-color: rgba(33, 150, 243, 0.1);
            color: var(--info-color);
        }
        
        .status-card-body {
            padding: 15px;
        }
        
        .status-info {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-bottom: 15px;
        }
        
        .status-label {
            font-size: 12px;
            color: var(--gray);
            margin-bottom: 5px;
        }
        
        .status-value {
            font-weight: 600;
            color: var(--text-color);
        }
        
        .progress-container {
            margin-top: 15px;
        }
        
        .progress-label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
            font-size: 12px;
            color: var(--gray);
        }
        
        .progress-bar {
            height: 8px;
            background-color: rgba(0, 0, 0, 0.05);
            border-radius: 4px;
            overflow: hidden;
        }
        
        .progress-fill {
            height: 100%;
            background: var(--primary-gradient);
            border-radius: 4px;
        }
        
        .maintenance-info,
        .standby-info {
            background-color: rgba(0, 0, 0, 0.02);
            padding: 10px;
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            margin-top: 15px;
            font-size: 13px;
        }
        
        .maintenance-info i,
        .standby-info i {
            margin-right: 10px;
            color: var(--warning-color);
        }
        
        .standby-info i {
            color: var(--info-color);
        }
        
        .status-card-footer {
            padding: 15px;
            border-top: 1px solid rgba(0, 0, 0, 0.05);
            display: flex;
            gap: 10px;
        }
        
        /* 设备状态样式 */
        .device-status-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
        }
        
        .device-status-item {
            display: flex;
            align-items: center;
            background-color: rgba(0, 0, 0, 0.02);
            padding: 15px;
            border-radius: var(--radius);
            transition: all 0.3s;
        }
        
        .device-status-item:hover {
            background-color: rgba(0, 0, 0, 0.04);
        }
        
        .device-status-icon {
            width: 50px;
            height: 50px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            font-size: 20px;
            flex-shrink: 0;
        }
        
        .device-status-icon.normal {
            background-color: rgba(76, 175, 80, 0.1);
            color: var(--success-color);
        }
        
        .device-status-icon.warning {
            background-color: rgba(255, 152, 0, 0.1);
            color: var(--warning-color);
        }
        
        .device-status-icon.error {
            background-color: rgba(244, 67, 54, 0.1);
            color: var(--danger-color);
        }
        
        .device-name {
            font-weight: 500;
            margin-bottom: 3px;
        }
        
        .device-value {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 3px;
        }
        
        .device-status {
            font-size: 12px;
            padding: 2px 8px;
            border-radius: 10px;
            display: inline-block;
        }
        
        .device-status.normal {
            background-color: rgba(76, 175, 80, 0.1);
            color: var(--success-color);
        }
        
        .device-status.warning {
            background-color: rgba(255, 152, 0, 0.1);
            color: var(--warning-color);
        }
        
        .device-status.error {
            background-color: rgba(244, 67, 54, 0.1);
            color: var(--danger-color);
        }
        
        /* 图表容器样式 */
        .charts-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .chart-container {
            height: 300px;
            position: relative;
        }
        
        .chart-placeholder {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background-color: rgba(0, 0, 0, 0.02);
            border-radius: var(--radius);
        }
        
        .chart-placeholder i {
            font-size: 48px;
            color: var(--gray);
            margin-bottom: 15px;
        }
        
        .chart-placeholder p {
            color: var(--gray);
        }
        
        .param-selector,
        .select-container {
            margin-right: 10px;
        }
        
        .time-selector {
            display: flex;
            gap: 5px;
        }
        
        /* 警报列表样式 */
        .alerts-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .alert-item {
            display: flex;
            align-items: center;
            padding: 15px;
            border-radius: var(--radius);
            transition: all 0.3s;
        }
        
        .alert-item.error {
            background-color: rgba(244, 67, 54, 0.05);
            border-left: 4px solid var(--danger-color);
        }
        
        .alert-item.warning {
            background-color: rgba(255, 152, 0, 0.05);
            border-left: 4px solid var(--warning-color);
        }
        
        .alert-item.info {
            background-color: rgba(33, 150, 243, 0.05);
            border-left: 4px solid var(--info-color);
        }
        
        .alert-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            font-size: 16px;
            flex-shrink: 0;
        }
        
        .alert-item.error .alert-icon {
            background-color: rgba(244, 67, 54, 0.1);
            color: var(--danger-color);
        }
        
        .alert-item.warning .alert-icon {
            background-color: rgba(255, 152, 0, 0.1);
            color: var(--warning-color);
        }
        
        .alert-item.info .alert-icon {
            background-color: rgba(33, 150, 243, 0.1);
            color: var(--info-color);
        }
        
        .alert-content {
            flex: 1;
        }
        
        .alert-title {
            font-weight: 600;
            margin-bottom: 5px;
        }
        
        .alert-description {
            color: var(--gray-dark);
            font-size: 13px;
            margin-bottom: 5px;
        }
        
        .alert-meta {
            display: flex;
            gap: 15px;
            font-size: 12px;
            color: var(--gray);
        }
        
        .alert-actions {
            display: flex;
            gap: 10px;
            margin-left: 20px;
        }
        
        .header-actions {
            display: flex;
            align-items: center;
        }
        
        .alert-filter {
            display: flex;
            gap: 5px;
        }
        
        @media (max-width: 768px) {
            .status-cards,
            .device-status-grid,
            .charts-container {
                grid-template-columns: 1fr;
            }
            
            .alert-item {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .alert-icon {
                margin-bottom: 10px;
            }
            
            .alert-actions {
                margin-left: 0;
                margin-top: 10px;
                width: 100%;
                justify-content: flex-end;
            }
            
            .header-actions {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
        }
    </style>
</body>
</html> 